<html>
<head><meta charset="utf-8"><title>Nightly feature availability within lint code · clippy · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/index.html">clippy</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Nightly.20feature.20availability.20within.20lint.20code.html">Nightly feature availability within lint code</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="217025580"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/Nightly%20feature%20availability%20within%20lint%20code/near/217025580" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Hirochika Matsumoto <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Nightly.20feature.20availability.20within.20lint.20code.html#217025580">(Nov 17 2020 at 16:23)</a>:</h4>
<p>I'm wondering if I can use an experimental API within lint codes. Context <span aria-label="point down" class="emoji emoji-1f447" role="img" title="point down">:point_down:</span> <br>
I took a quick look at <a href="https://github.com/rust-lang/rust-clippy/issues/1335">this issue</a> and thought something like <code>split_inclusive(char::is_uppercase)</code> is well suited, where <code>split_inclusive</code> is a nightly-only fn.</p>



<a name="217034415"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/Nightly%20feature%20availability%20within%20lint%20code/near/217034415" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> flip1995 <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Nightly.20feature.20availability.20within.20lint.20code.html#217034415">(Nov 17 2020 at 17:24)</a>:</h4>
<p>Clippy already uses many nightly features, so one more should not do any harm. Just add it to <code>lib.rs</code> if it simplifies fixing the issue. Note that experimental features are ok, incomplete features is something we want to avoid though.</p>



<a name="217153451"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/Nightly%20feature%20availability%20within%20lint%20code/near/217153451" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Hirochika Matsumoto <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Nightly.20feature.20availability.20within.20lint.20code.html#217153451">(Nov 18 2020 at 15:53)</a>:</h4>
<p>That's good to know. Thanks!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>